package com.hst.capacity.domain.model.entity.auth;

import com.hst.capacity.domain.model.entity.AbstractEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "t_token")
public class TokenEntity extends AbstractEntity {

    /**
     *  用户ID（主键）
     * */
    @Id
    private String userId;

    /**
     *  访问令牌
     * */
    private String accessToken;

    /**
     *  过期时间
     */
    private Long expires;

}
